<template>
    <div class="exchange">
    	<img class="close" src="../assets/img/butuisong@2x.png" @click.stop.self="close(momentType, momentId)"/>
      <a href="gtjayyz://jumpfunc?funid=11002">
      	<div class="exchange_con">
      		<div class='touxiang'>
            <avatar :src="Props.USER_PHOTO" :href="Props.USER_CODE"/>
      			<!-- <img src="../assets/img/touxiangBG@2x.png"/> -->
      		</div>
      		<div class="info">
      			 <div class="info_name">
        			 <span class="v_name">{{Props.NICK_NAME}}</span>
        			 <img class="v_logo" src="../assets/img/vip@2x.png" v-if="Props.USER_LEVEL!==null && Props.USER_LEVEL!==''"/>
      			 </div>
      			 <p class='info_con1'>刚刚用 {{Props.JYB_COUNT | countFilter}} 个君元宝</p>
      			 <p class="info_con2">在商城兑换了 {{Props.GOODS_NAME}}</p>
      			 <span class='go_other'>
      			 	 我也兑 >
      			 </span>
      		</div>
    	 </div>
      </a>
      <slot></slot>
    </div>
</template>

<script>
import BottomBar from './common/BottomBar'
import MomentMixin from './MomentMixin'
import Avatar from './Avatar'

export default {
  name: 'exchange',
  props: {
    Props: Object
  },
  filters: {
    countFilter (val) {
      return parseInt(val)
    }
  },
  mixins: [MomentMixin],
  created () {
    console.log(this.Props)
  },
  components: {
    Avatar,
    BottomBar
  },
  methods: {}
}
</script>

<style lang="less" scoped>
@import "./common/mixins.less";

.exchange {
  .moment;
  position:relative;
  .close {
  	position:absolute;
  	right: 4px;
  	top: 0px;
  	width: 34px;
  	height: 24px;
  }
}
.exchange_con {
	height: 143px;
	width: 100%;
	padding: 35px 20px 0 41px;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	text-align: left;
}
.touxiang {
	width: 58px;
	height: 58px;
	margin-right: 17px;
	img{
		display: block;
		width: 58px;
	  height: 58px;
	}
}
.info {
  flex: 2;
}
.info_con1,.info_con2 {
	.info_con_font;
}
.info_con1 {
	color: #777777;
	margin-bottom: 3px;
}
.info_con2 {
	color: #777777;
	margin-bottom: 10px;
  .ellipsis(1);
}
.go_other {
	.go_other_font;
}
</style>
